<?php echo $this->placeholder('container-class')->set('custom');?>
<?php $bedroom = Model_Listing_Residential::getBedroom();
$bedrooms = ($bedroom[$this->listing->bedroom] > 1) ? $bedroom[$this->listing->bedroom] . ' bedrooms' : $bedroom[$this->listing->bedroom] . ' bedroom';
?>
<dl class="detail">
	<dt>Detail:</dt>
 <dd>
<?php 
	$to_add     = '';
	$to_add1     = '';
	if (!empty($this->listing->street)){ 
		echo trim($this->listing->street);
		$to_add     = ', ';}
		if (!empty($this->listing->bedroom)){ ?><?php echo $to_add ?><a href="<?php echo Ac_Util::getCrossLink($this->listing->bedroom, 'bedroom');?>"><?php echo $bedrooms; ?></a><?php 
		$to_add1     = ', ';
	} 
	if (!empty($this->listing->size)){ 
		echo $to_add1 . $this->t('__1__ sqft', null, number_format($this->listing->size));
	} ?>
 </dd>
</dl>

<?php if (!empty($this->listing->area_l2)):?>
<?php $distric_name = Model_Location::find($this->listing->area_l2)->name;?>
<dl class="detail">
	<dt><?php echo $this->t('Detail')?>:</dt>
	<dd>
		<a href="<?php echo Ac_Util::getCrossLink($this->listing->area_l2, 'area_l2');?>">
			<?php echo $distric_name?>
		</a>
	</dd>
</dl>
<?php endif;?>

<?php if (!empty($this->listing->rent_price) || !empty($this->listing->sale_price)):?>
<dl class="price">
	<dt><?php echo $this->t('Price')?>:</dt>
	<dd>
	<?php 
	$to_add     = '';
	if (!empty($this->listing->rent_price)){
		echo $this->t('HKD __1__ <em>(Rent)</em>', null, number_format($this->listing->rent_price)); 
		$to_add     = ' | ';
	}?> <?php if (!empty($this->listing->sale_price)){
		echo $to_add . $this->t('HKD __1__ <em>(Sale)</em>', null, number_format($this->listing->sale_price));
	}?>
	</dd>
</dl>
<?php endif;?>


